import request from "@/request";

/**
 * 获取会员储值卡模板
 * url, name, type, query
*/

//获取详情 企业信息
export const getCompanyInfo = () => request.get(`/store-server/medicalInstitution/detail`).then(res => {
    return res;
})
//提交所有的信息
export const postInternalSaveStore = (data) =>  request.post('/store-server/medicalInstitution/save', data).then(res => {
    return res
})
//e认证
export const getUrl = (data) =>  request.post('/store-server/company/eqbVerified', data).then(res => {
    return res
})

//获取门店详情
export const getStoreDetails = (uuid) =>  request.get(`/store-server/store/check/${uuid}`).then(res => {
    return res
})


//提交审核
export const postApplay = () =>  request.post(`/store-server/medicalInstitution/submitReview`).then(res => {
    return res
})

/**
 * 匹配银行地址
 */
 export function getBankAddr(param) {
    return request({
      url: `/store-server/businessInfo/getBankAddr?param=${param}`,
      method: "get",
    })
  }
  